import Home from '../components/Home'
import Shop from '../components/Home/children/shop'
import Shangjia from '../components/Home/children/shangjia'
import Pinglun from '../components/Home/children/pinglun'
import Detail from '../components/Detail'
import Shopcar from '../components/shopcar'
const routes=[
    {
        path:'/',
        element:<Home/>
    },
    {
        path:'/home',
        element:<Home/>,
        children:[
        {
            path:'/home/shop',
            element:<Shop />
        },
        {
            path:'/home/pinglun',
            element:<Pinglun />
        },
        {
            path:'/home/shangjia',
            element:<Shangjia />
        },
        ]
    },
    {
        path:'/detail/:id',
        element:<Detail/>
    },
    {
        path:'/shopcar',
        element:<Shopcar/>
    }

]
export default routes